<?php

namespace MyApp\Models;

class Student extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $id;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=false)
     */
    public $name;

    /**
     *
     * @var string
     * @Column(type="string", length=4, nullable=true)
     */
    public $sex;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $cert;

    /**
     *
     * @var string
     * @Column(type="string", length=24, nullable=true)
     */
    public $nation;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $birthday;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $school;

    /**
     *
     * @var string
     * @Column(type="string", length=16, nullable=true)
     */
    public $edu;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $depart;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $class;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $pro;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $card;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $edu_type;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $school_time;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $school_year;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $type;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $status;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $avatar;

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return Student[]
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return Student
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'student';
    }

}
